# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE 	:= cdrbryoiso
LOCAL_SRC_FILES := cdrom/system.c\
				   cdrom/Android/android.c
LOCAL_CFLAGS	:= -Iapps/pcsxandroid/project/jni/cdrom

include $(BUILD_SHARED_LIBRARY)

LOCAL_MODULE    := pcsxcore
LOCAL_SRC_FILES := 	core/Android/System.c\
					core/Android/AndroidBindings.c\
					core/main.c\
					core/CdRom.c\
					core/Decode_XA.c\
					core/DisR3000A.c\
					core/Gte.c\
					core/Mdec.c\
					core/Misc.c\
					core/plugins.c\
					core/PsxBios.c\
					core/PsxCounters.c\
					core/PsxDma.c\
					core/PsxHLE.c\
					core/PsxHw.c\
					core/PsxInterpreter.c\
					core/PsxMem.c\
					core/R3000A.c\
					core/Sio.c\
					core/Spu.c
LOCAL_LDLIBS    := -lz -llog -ldl
LOCAL_CFLAGS 	:= -Iapps/pcsxandroid/project/jni/core -D__ANDROID__

include $(BUILD_SHARED_LIBRARY)